#include "MySQLClient.hpp"

#include <cstdlib>
#include <mysql/mysql.h>


int main()
{
    using namespace rlt;
    MySQLClient myclient;
    bool ret = myclient.connect("192.168.27.128", "root", "123", "01_SHMS");
    if(!ret) {
        return EXIT_FAILURE;
    }

    //string sql1 = "INSERT INTO user_test VALUES(2, 'gaoyunan', 4, 6)";
    //myclient.write_operation(sql1);
    string sql2 = "select * from user_test";
    vector<vector<string>> res = myclient.read_operation(sql2);
    MySQLClient::print_sql_res(res);

    return 0;
}
